#! /usr/bin/env python
# -*- coding: utf-8 -*-
from flask import Flask, abort, redirect, url_for, render_template, request, make_response
# import control
from net import net
# # from page import pageany
# # from page import headany
# # import char,collections

# # a=net('ujn.edu.cn')
# # page_doc=a.GET()
# # # pagetest=page(html_doc)
# # # print(char.GetTime())
# # # urllist=page.GetTitle(pagetest)
# # # print(urllist)

# # pagetest=pageany(page_doc)
# # print(pagetest.GetUrls())

# # a=[]
# # a.append({'a':1,'b':'zhc'})
# # # print(a)

# # if __name__ == '__main__':
# 	print(control.run({'deep':0,'url':'ujn.edu.cn','father':'ujn.edu.cn'},control.urlQ))

# from net import net

tmp=net('news.ujn.edu.cn')
strs=tmp.GET()
print(strs)
# app = Flask(__name__)

# @app.route('/')
# def cookie_insertion():
# 	response = make_response()  
# 	response.set_cookie('cookie_name',value='values')
# 	return response

# if __name__ == '__main__':
# 	app.run(port='5001')